Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add ability to squash builds #41

Merged
merged 8 commits into from
May 1, 2024
Merged

feat: Add ability to squash builds #41

merged 8 commits into from
May 1, 2024

Conversation

gmpinder
Copy link
Member

Trying to support an older version of buildah and podman proved too difficult. Instead we'll just run the build inside a container. From my own testing with the squash builds, when you run buildah/podman inside a container, the builds can be incredibly slow with all the multi-stages and mounts on the RUN instructions. However, activating squash (--layers=false) the build runs just as fast as normal. Activating the squash feature will by default not make use of any cache abilities.

@gmpinder gmpinder added the type: feature Brand new functionality, features, pages, workflows, endpoints, etc. label Apr 27, 2024
@gmpinder gmpinder self-assigned this Apr 27, 2024
@fiftydinar
Copy link
Collaborator

Can some code get reused from building cached image, instead of having to update CLI version twice & having 2 same codes for determining recipe?

@gmpinder
Copy link
Member Author

Can some code get reused from building cached image, instead of having to update CLI version twice & having 2 same codes for determining recipe?

Good idea. I'll work on that

action.yml Outdated Show resolved Hide resolved
@xynydev xynydev merged commit f7c352d into main May 1, 2024
@xynydev xynydev deleted the sqauash-builds branch May 1, 2024 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature Brand new functionality, features, pages, workflows, endpoints, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants